#define _CRT_SECURE_NO_WARNINGS 1

#include <iostream>
#include <string>
using namespace std;

int main() {
    string str1 = "They are students." 
       , str2 = "aeiou";
    /*getline(cin, str1);

    getline(cin, str2);*/
    string str;
    for (int i = 0; i < str1.size(); i++)
    {
        int pos = str2.find(str1[i]);

        if (pos != string::npos)
        {
            cout << str2[pos] << " " << str1[i] << endl;
            str.clear();
            str += str1.substr(0, i);
            str += str1.substr(i + 1);
            str1 = str;
            i--;
        }
    }
    cout << str1;
    return 0;
}